/**
 * This Java Class is part of the Impro-Visor Application
 *
 * Copyright (C) 2005-2009 Robert Keller and Harvey Mudd College
 *
 * Impro-Visor is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Impro-Visor is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * merchantability or fitness for a particular purpose.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Impro-Visor; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

package imp.com;

/**
 * Command provides an interface for Commands that can be executed, undone, 
 * and redone.
 *
 * @see         CommandManager
 * @see         PlayScoreCommand
 * @author      Stephen Jones
 */
public interface Command {

    /**
     * Executes the command.
     */
    public void execute();

    /**
     * Undoes the command.
     */
    public void undo();

    /**
     * Redoes the command.
     */
    public void redo();

    /**
     * Returns true if the command can be undone, false otherwise.
     * @return true if the command can be undone, false otherwise
     */
    public boolean isUndoable();
}
